package com.example.basic.web.model.notice;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.basic.base.IdEntity;
import com.example.basic.base.event.PreCreateEventEntity;
import com.example.basic.base.event.PreUpdateEventEntity;
import com.example.basic.utils.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 入库通知单
 * </p>
 *
 * @roleor zzl
 * @since 2024-3-14
 */
@Data
@TableName("sys_in_notice")
@ApiModel(value="InNotice对象", description="入库通知单")
public class InNotice extends IdEntity implements PreCreateEventEntity, PreUpdateEventEntity {

    @ApiModelProperty(value = "数据id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "数据创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    @JSONField(format = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date createAt;

    @ApiModelProperty(value = "数据创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "数据修改时间")
    @TableField(value = "update_at", fill = FieldFill.UPDATE)
    @JSONField(format = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date updateAt;

    @ApiModelProperty(value = "数据修改人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "通知单编码")
    @TableField("in_notice_code")
    private String inNoticeCode;

    @ApiModelProperty(value = "遗体编码")
    @TableField("remains_code")
    private String remainsCode;

    @ApiModelProperty(value = "仓库编码")
    @TableField("pharm_code")
    private String pharmCode;

    @ApiModelProperty(value = "仓库名称")
    @TableField(exist = false)
    private String pharmName;

    @ApiModelProperty(value = "分区编码")
    @TableField("zone_code")
    private String zoneCode;

    @ApiModelProperty(value = "分区名称")
    @TableField(exist = false)
    private String zoneName;

    @ApiModelProperty(value = "库位编码")
    @TableField("depot_code")
    private String depotCode;

    @ApiModelProperty(value = "接驳站")
    @TableField("dock_station")
    private String dockStation;

    @ApiModelProperty(value = "操作人")
    @TableField("oper_person")
    private String operPerson;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private Date auditTime;

    @ApiModelProperty(value = "审核人")
    @TableField("audit_person")
    private String auditPerson;

    @ApiModelProperty(value = "瞻仰厅")
    @TableField("admire_hall")
    private String admireHall;

    @ApiModelProperty(value = "瞻仰厅名称")
    @TableField(exist = false)
    private String admireHallName;

    @ApiModelProperty(value = "火化间")
    @TableField("cremation_room")
    private String cremationRoom;

    @ApiModelProperty(value = "火化间名称")
    @TableField(exist = false)
    private String cremationRoomName;
}